package io.homework3;

import java.io.FileOutputStream;

public class Test4 {
    public static void main(String[] args) {
        try (            FileOutputStream fos = new FileOutputStream("./a.txt");)
        {
            fos.write(78);
        } catch (Exception e) {
            System.out.println("文件发生了一点小异常，已经解决");
        }finally {
            System.out.println("无论结果如何，都要走这一步的");
        }
    }
}
